import { get, post } from '@/libs/request'

/**
 * 查询群聊列表 - 付费群
 */
const getGroupList = () => get<T_GroupInfo[]>('group/list', { groupType: 2 })

/**
 * 付费进群(需付费的群，会扣减一次进群权益)
 * @param groupId 群ID
 */
const joinGroup = (groupId: number) => post('group/join', { groupId })

export { getGroupList, joinGroup }
